import axios from "@ohos/axios";
import { AxiosInstance } from "@ohos/axios"


var _axios: AxiosInstance = null

export function getAxios() {
  if (_axios) {
    return _axios;
  } else {
    return _axios = axios.create({
      baseURL: 'http://localhost:8081'
      // baseURL: 'http://192.168.31.32:8081'
    });
  }
}